<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/3/13
  Time: 15:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学生信息</title>
</head>
<body>
    <table width="300px" border="1px">
        <tr align="center">
            <td >学生编号</td>
            <td >学生姓名</td>
            <td >年龄</td>
            <td >性别</td>
        </tr>
        <c:forEach items="${stulist}" var="stu">
        <tr align="center">
            <td >${stu.id}</td>
            <td >${stu.stuname}</td>
            <td >${stu.age}</td>
            <td >${stu.sex==1?"男":"女"}</td>
        </tr>
        </c:forEach>
    </table>
</body>
</html>
